<?php
/**
 * Created by PhpStorm.
 * User: priestll
 * Date: 20-7-16
 * Time: 下午3:03
 */

namespace App\WebSocket;


use App\Biz\AwardsBiz;
use EasySwoole\Component\Di;
use EasySwoole\EasySwoole\ServerManager;
use EasySwoole\EasySwoole\Task\TaskManager;
use priestll\easyswoole\util\Token;
use priestll\easyswoole\websocket\Auth;

class Awards extends Auth
{

    public function start()
    {
        $user = $this->getUser();
        $biz = Di::getInstance()->get('AWARDS_BIZ');
        $biz->cache($user["id"],$user["round"],$user["nickname"]);
    }


}